#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int ma = a, mi = a;
	int temp;
	ma = max(ma, b);
	ma = max(ma, c);
	mi = min(mi, b);
	mi = min(mi, c);
	temp = a + b + c - ma - mi;
	cout << ma << " " << temp << " " << mi << endl;
	return 0;
}